import java.awt.image.BufferedImage;

public class WolfPlane extends Plane{
    int waittime = 0;
    boolean isready = true;
    public BufferedImage getImage(){
        return  Images.graywolf;
    }

    public void move(){
        //x小于100停止投放
        if (x<100){
            isready = false;
        }
        //x小于0等待下一次投放
        if (x<-width){
            x = 999;
            waittime = 300;
        }
        //倒计时
        if (waittime>0)waittime--;
        //没有倒计时继续投放
        if (waittime==0){
            isready = true;
            x-=speed;
        }

    }

}
